package com.suncnpap.statistics.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.util.database.mybatis.Page;
import com.suncnpap.statistics.service.WorkLogService;
import com.suncnpap.statistics.mapper.WorkLogMapper;
import com.suncnpap.statistics.model.WorkLog;

/** 
 * 说明： 工作人员操作记录Service实现类
 * @version
 */
@Service("workLogService")
public class WorkLogServiceImpl implements WorkLogService{

	
	@Autowired
	WorkLogMapper workLogMapper;
	
	@Override
	public void add(WorkLog obj) {
		// TODO Auto-generated method stub
		workLogMapper.add(obj);
	}

	@Override
	public void update(WorkLog obj) {
		// TODO Auto-generated method stub
		workLogMapper.edit(obj);
	}

	@Override
	public void deleteById(String strId) {
		// TODO Auto-generated method stub
		workLogMapper.deleteById(strId);
		
	}
	@Override
	public void deleteMore(String[] strIds) {
		// TODO Auto-generated method stub
		workLogMapper.deleteMore(strIds);
	}

	@Override
	public Page list(Page page) {
		// TODO Auto-generated method stub
		List<WorkLog> list = workLogMapper.datalistPage(page);
		page.setDataList(list);
		return page;
	}


	@Override
	public int findCount(Page page) {
		// TODO Auto-generated method stub
		return workLogMapper.findCount(page);
	}

	@Override
	public WorkLog findById(String strId) {
		// TODO Auto-generated method stub
		return workLogMapper.findById(strId);
	}
	
	@Override
	public Page workLogList(Page page){
		// TODO Auto-generated method stub
		List<WorkLog> list = workLogMapper.workLogList(page);
		page.setDataList(list);
		return page;
	}
}

